﻿<%@ Control Language="C#" Inherits="PT.ThueXe.EditThueXe" AutoEventWireup="true"
    CodeBehind="EditThueXe.ascx.cs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<div>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2">
                <dnn:Label ID="Label9" runat="server" ResourceKey="lblMailSendTo" CssClass="spanTitle">
                </dnn:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="Label7" runat="server" ResourceKey="lblMailFrom" CssClass="spanTitle"
                    Suffix=":" />
            </td>
            <td>
                <telerik:RadTextBox ID="txtMailFrom" runat="server" Width="200px">
                </telerik:RadTextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="Label8" runat="server" ResourceKey="lblMailTo" CssClass="spanTitle"
                    Suffix=":" />
            </td>
            <td>
                <telerik:RadTextBox ID="txtMailTo" runat="server" Width="200px">
                </telerik:RadTextBox>
                <telerik:RadButton ID="btnSave" runat="server" Text="Lưu" OnClick="_btnSave_Click">
                </telerik:RadButton>
            </td>
        </tr>
    </table>
</div>
<hr />
<div class="search-area">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td colspan="10">
                <dnn:Label ID="Label10" runat="server" ResourceKey="lblRegisterList" CssClass="spanTitle">
                </dnn:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="lblName" runat="server" ResourceKey="lblName" CssClass="spanTitle">
                </dnn:Label>
            </td>
            <td>
                <telerik:RadTextBox ID="txtName" runat="server" Width="120px">
                </telerik:RadTextBox>
            </td>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="lblCarType" runat="server" ResourceKey="lblCarType" CssClass="spanTitle">
                </dnn:Label>
            </td>
            <td>
                <telerik:RadComboBox ID="cboCarType" runat="server" Width="120px" DataValueField="CarTypeID"
                    DataTextField="TypeName">
                </telerik:RadComboBox>
            </td>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="lblFromCity" runat="server" ResourceKey="lblFromCity" CssClass="spanTitle">
                </dnn:Label>
            </td>
            <td>
                <telerik:RadComboBox ID="cboFromCity" runat="server" Width="120px" DataValueField="CityID"
                    DataTextField="CityName">
                </telerik:RadComboBox>
            </td>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="lblToCity" runat="server" ResourceKey="lblToCity" CssClass="spanTitle">
                </dnn:Label>
            </td>
            <td>
                <telerik:RadComboBox ID="cboToCity" runat="server" Width="120px" DataValueField="CityID"
                    DataTextField="CityName">
                </telerik:RadComboBox>
            </td>
        </tr>
        <tr>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="lblFromDate" runat="server" ResourceKey="lblFromDate" CssClass="spanTitle">
                </dnn:Label>
            </td>
            <td>
                <telerik:RadDatePicker ID="dteFromDate" runat="server" Width="120px">
                </telerik:RadDatePicker>
            </td>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="lblToDate" runat="server" ResourceKey="lblToDate" CssClass="spanTitle">
                </dnn:Label>
            </td>
            <td>
                <telerik:RadDatePicker ID="dteTodate" runat="server" Width="120px">
                </telerik:RadDatePicker>
            </td>
            <td style="width: 80px; text-align: right">
                <dnn:Label ID="lblCreatedDate" runat="server" ResourceKey="lblCreatedDate" CssClass="spanTitle">
                </dnn:Label>
            </td>
            <td>
                <telerik:RadDatePicker ID="dteCreatedDate" runat="server" Width="120px">
                </telerik:RadDatePicker>
            </td>
        </tr>
        <tr>
            <td colspan="10" align="right">
                <br />
                <telerik:RadButton ID="btnOK" runat="server" Text="Tìm kiếm" OnClick="_btnOK_Click">
                </telerik:RadButton>
                <br />
                <br />
            </td>
        </tr>
    </table>
</div>
<telerik:RadGrid ID="grdThueXe" runat="server" AutoGenerateColumns="false" AllowPaging="true"
    AllowSorting="true" PageSize="10" OnNeedDataSource="_grdThueXe_NeedDataSource">
    <MasterTableView DataKeyNames="ItemId" ClientDataKeyNames="ItemId">
        <PagerStyle Mode="NextPrevAndNumeric" />
        <Columns>
            <telerik:GridTemplateColumn DataField="Name" HeaderText="Tên">
                <ItemTemplate>
                    <asp:Label ID="Label1" Text='<%# Eval("Name") %>' runat="server" /><br />
                    <asp:Label ID="Label2" Text='<%# Eval("Address") %>' runat="server" /><br />
                    <asp:Label ID="Label3" Text='<%# Eval("Phone") %>' runat="server" /><br />
                    <asp:Label ID="Label4" Text='<%# Eval("Email") %>' runat="server" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Thông tin">
                <ItemTemplate>
                    <span>Loại xe:</span><asp:Label ID="Label1" Text='<%# Eval("CarType") %>' runat="server" /><br />
                    <span>Từ nơi - Đến nơi:</span>
                    <asp:Label ID="Label2" Text='<%# Eval("FromCity") %>' runat="server" />
                    <span>~ </span>
                    <asp:Label ID="Label5" Text='<%# Eval("ToCity") %>' runat="server" /><br />
                    <span>Từ ngày - Đến ngày:</span>
                    <asp:Label ID="Label3" Text='<%# String.Format("{0:dd/MM/yyyy}", Eval("FromDate")) %>'
                        runat="server" />
                    <span>~ </span>
                    <asp:Label ID="Label6" Text='<%# String.Format("{0:dd/MM/yyyy}",Eval("ToDate")) %>'
                        runat="server" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Thông tin khác">
                <ItemTemplate>
                    <asp:Literal ID="Label11" Text='<%# Eval("DetailInformation") %>' runat="server" />
                    <strong>Thông tin thêm:</strong>
                    <asp:Label ID="Label1" Text='<%# Eval("OtherInformation") %>' runat="server" /><br />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="OtherInformation" HeaderText="Thông tin khác"
                AllowSorting="false" DataType="System.String">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CreatedDate" HeaderText="Ngày tạo" DataType="System.DateTime">
            </telerik:GridBoundColumn>
        </Columns>
        <PagerStyle Mode="NumericPages" />
    </MasterTableView>
</telerik:RadGrid>
